package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.SaleQuotationEntity;

/**
 * 销售报价单Service接口
 * 
 * @author wutao
 * @date 2024-06-27
 */
public interface ISaleQuotationService extends IService<SaleQuotationEntity> {
    /**
     * 查询销售报价单
     * 
     * @param id 销售报价单ID
     * @return 销售报价单
     */
    AjaxResult selectSaleQuotationById(String id);

    /**
     * 查询销售报价单列表
     * 
     * @param saleQuotation 销售报价单
     * @return 销售报价单集合
     */
    List<SaleQuotationEntity> selectSaleQuotationList(SaleQuotationEntity saleQuotation);

    /**
     * 新增销售报价单
     * 
     * @param saleQuotation 销售报价单
     * @return 结果
     */
//    AjaxResult insertSaleQuotation(SaleQuotationEntity saleQuotation);

    /**
     * 暂存销售报价单
     * @param saleQuotation
     * @return
     */
    AjaxResult draft(SaleQuotationEntity saleQuotation);

    /**
     * 提交销售报价单
     * @param saleQuotation
     * @return
     */
    AjaxResult submit(SaleQuotationEntity saleQuotation);

    /**
     * 修改销售报价单
     * 
     * @param saleQuotation 销售报价单
     * @return 结果
     */
    AjaxResult updateSaleQuotation(SaleQuotationEntity saleQuotation);

    /**
     * 批量删除销售报价单
     * 
     * @param ids 需要删除的销售报价单ID
     * @return 结果
     */
    AjaxResult deleteSaleQuotationByIds(String[] ids);

    /**
     * 删除销售报价单信息
     * 
     * @param id 销售报价单ID
     * @return 结果
     */
    int deleteSaleQuotationById(String id);
}
